Object.defineProperty(exports, "__esModule", { value: !0 }),
  (exports.postTuPuIsExist =
    exports.postReserveData =
    exports.postOrderData =
    exports.postMuseumTimeData =
    exports.postGuideOrder =
    exports.postGuideData =
    exports.postFlowData =
    exports.postExplainData =
    exports.postCourseData =
    exports.postActivityData =
      void 0);
var t = n(require("../../@babel/runtime/regenerator")),
  r = require("../../@babel/runtime/helpers/asyncToGenerator"),
  e = n(require("../request")),
  a = n(require("@config/index"));
function n(t) {
  return t && t.__esModule ? t : { default: t };
}
var s = new e.default(),
  u = a.default.isProd ? a.default.API_PROD : a.default.API_TEST;
(exports.postExplainData = (function () {
  var e = r(
    t.default.mark(function r() {
      var e, a;
      return t.default.wrap(function (t) {
        for (;;)
          switch ((t.prev = t.next)) {
            case 0:
              return (
                (e = "".concat(u, "/san/v1/third/proxy")),
                (t.next = 3),
                s.post(
                  e,
                  {
                    path: "/openapi/sxdms/explain/getBookableExpList/master",
                    params: {},
                  },
                  {},
                )
              );
            case 3:
              return (a = t.sent), t.abrupt("return", a);
            case 5:
            case "end":
              return t.stop();
          }
      }, r);
    }),
  );
  return function () {
    return e.apply(this, arguments);
  };
})()),
  (exports.postGuideData = (function () {
    var e = r(
      t.default.mark(function r() {
        var e, a;
        return t.default.wrap(function (t) {
          for (;;)
            switch ((t.prev = t.next)) {
              case 0:
                return (
                  (e = "".concat(u, "/san/v1/third/proxy")),
                  (t.next = 3),
                  s.post(
                    e,
                    {
                      path: "/openapi/sxdms/guide/getBookableGuideList/master",
                      params: {},
                    },
                    {},
                  )
                );
              case 3:
                return (a = t.sent), t.abrupt("return", a);
              case 5:
              case "end":
                return t.stop();
            }
        }, r);
      }),
    );
    return function () {
      return e.apply(this, arguments);
    };
  })()),
  (exports.postActivityData = (function () {
    var e = r(
      t.default.mark(function r() {
        var e, a;
        return t.default.wrap(function (t) {
          for (;;)
            switch ((t.prev = t.next)) {
              case 0:
                return (
                  (e = "".concat(u, "/san/v1/third/proxy")),
                  (t.next = 3),
                  s.post(
                    e,
                    {
                      path: "/openapi/sxdms/rems/getResActivityList/master",
                      params: {},
                    },
                    {},
                  )
                );
              case 3:
                return (a = t.sent), t.abrupt("return", a);
              case 5:
              case "end":
                return t.stop();
            }
        }, r);
      }),
    );
    return function () {
      return e.apply(this, arguments);
    };
  })()),
  (exports.postCourseData = (function () {
    var e = r(
      t.default.mark(function r() {
        var e, a;
        return t.default.wrap(function (t) {
          for (;;)
            switch ((t.prev = t.next)) {
              case 0:
                return (
                  (e = "".concat(u, "/san/v1/third/proxy")),
                  (t.next = 3),
                  s.post(
                    e,
                    {
                      path: "/openapi/sxdms/rems/getCourseList/master",
                      params: {},
                    },
                    {},
                  )
                );
              case 3:
                return (a = t.sent), t.abrupt("return", a);
              case 5:
              case "end":
                return t.stop();
            }
        }, r);
      }),
    );
    return function () {
      return e.apply(this, arguments);
    };
  })()),
  (exports.postOrderData = (function () {
    var e = r(
      t.default.mark(function r(e) {
        var a, n;
        return t.default.wrap(function (t) {
          for (;;)
            switch ((t.prev = t.next)) {
              case 0:
                return (
                  (a = "".concat(u, "/san/v1/third/proxy")),
                  (t.next = 3),
                  s.post(
                    a,
                    {
                      path: "/openapi/sxdms/ticket/queryOrderUnionId/master",
                      params: { unionId: e },
                    },
                    {},
                  )
                );
              case 3:
                return (n = t.sent), t.abrupt("return", n);
              case 5:
              case "end":
                return t.stop();
            }
        }, r);
      }),
    );
    return function (t) {
      return e.apply(this, arguments);
    };
  })()),
  (exports.postFlowData = (function () {
    var e = r(
      t.default.mark(function r(e) {
        var a, n;
        return t.default.wrap(function (t) {
          for (;;)
            switch ((t.prev = t.next)) {
              case 0:
                return (
                  (a = "".concat(u, "/san/v1/third/proxy")),
                  (t.next = 3),
                  s.post(
                    a,
                    {
                      path: "/openapi/sxdms/ticket/getPassengerFlow/master",
                      params: e,
                    },
                    {},
                  )
                );
              case 3:
                return (n = t.sent), t.abrupt("return", n);
              case 5:
              case "end":
                return t.stop();
            }
        }, r);
      }),
    );
    return function (t) {
      return e.apply(this, arguments);
    };
  })()),
  (exports.postReserveData = (function () {
    var e = r(
      t.default.mark(function r() {
        var e, a;
        return t.default.wrap(function (t) {
          for (;;)
            switch ((t.prev = t.next)) {
              case 0:
                return (
                  (e = "".concat(u, "/san/v1/third/proxy")),
                  (t.next = 3),
                  s.post(
                    e,
                    {
                      path: "/openapi/sxdms/ticket/getEarliestDay/master",
                      params: {},
                    },
                    {},
                  )
                );
              case 3:
                return (a = t.sent), t.abrupt("return", a);
              case 5:
              case "end":
                return t.stop();
            }
        }, r);
      }),
    );
    return function () {
      return e.apply(this, arguments);
    };
  })()),
  (exports.postMuseumTimeData = (function () {
    var e = r(
      t.default.mark(function r() {
        var e, a;
        return t.default.wrap(function (t) {
          for (;;)
            switch ((t.prev = t.next)) {
              case 0:
                return (
                  (e = "".concat(u, "/san/v1/third/proxy")),
                  (t.next = 3),
                  s.post(
                    e,
                    {
                      path: "/openapi/sxdms/ticket/getOpenTime/master",
                      params: {},
                    },
                    {},
                  )
                );
              case 3:
                return (a = t.sent), t.abrupt("return", a);
              case 5:
              case "end":
                return t.stop();
            }
        }, r);
      }),
    );
    return function () {
      return e.apply(this, arguments);
    };
  })()),
  (exports.postTuPuIsExist = (function () {
    var e = r(
      t.default.mark(function r(e) {
        var n, u;
        return t.default.wrap(function (t) {
          for (;;)
            switch ((t.prev = t.next)) {
              case 0:
                return (
                  (n = a.default.isProd
                    ? "https://pckgs.sxd.cn/8506/v2/graph/verifyPath"
                    : "http://122.112.235.243:8507/v2/graph/verifyPath"),
                  (t.next = 3),
                  s.post(
                    n,
                    { englishCode: "sortNumber", attrVals: e },
                    { tenantId: "36fe00f022e64641a15d911152479905" },
                  )
                );
              case 3:
                return (u = t.sent), t.abrupt("return", u);
              case 5:
              case "end":
                return t.stop();
            }
        }, r);
      }),
    );
    return function (t) {
      return e.apply(this, arguments);
    };
  })()),
  (exports.postGuideOrder = (function () {
    var e = r(
      t.default.mark(function r(e) {
        var a, n;
        return t.default.wrap(function (t) {
          for (;;)
            switch ((t.prev = t.next)) {
              case 0:
                return (
                  (a = "".concat(u, "/san/v1/third/proxy")),
                  (t.next = 3),
                  s.post(
                    a,
                    {
                      path: "/openapi/sxdms/ticket/getGuideOrder/master",
                      params: { unionId: e },
                    },
                    {},
                  )
                );
              case 3:
                return (n = t.sent), t.abrupt("return", n);
              case 5:
              case "end":
                return t.stop();
            }
        }, r);
      }),
    );
    return function (t) {
      return e.apply(this, arguments);
    };
  })());
